package com.vilicode.mapper;

import com.vilicode.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    public void addUser(User user);
    public int identify(@Param("uname")String uname);
    public void UpdatePhoneAndAddress(@Param("uid")int uid,@Param("uphone")String uphone,@Param("uaddress")String uaddress);
    public void UpdatePassword(@Param("uid")int uid,@Param("upwd")String upwd);
    public int getUidByUname(@Param("uname")String uname);
    public User login(@Param("uname")String uname );
    public String queryUpwd(@Param("uid")int uid);
    public List<User> queryUser(@Param("pageIndex")int pageIndex,@Param("pageSize")int pageSize);
    public int queryCountOfUser();
    public void deleteUser(@Param("uid")int uid);
    public User queryUserByUid(@Param("uid")int uid);
}